<!DOCTYPE html>
<html><head>
<title>Homework of Week 4</title>




<meta charset="utf-8">
<meta name="X-UA-Compatible" content="IE=edge">
<meta name="google-site-verification" content="">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<meta content="telephone=no" name="format-detection">
<meta name="description" content="">
<meta name="renderer" content="webkit">
<meta name="theme-color" content="#ffffff">



<meta property="og:title" content="Homework of Week 4" />
<meta property="og:description" content="名词解释 ASCII ASCII abbreviated from American Standard Code for Information Interchange, is a character encoding standard. ASCII codes represent text in computers, telecommunications equipment, and other devices. Most modern character-encoding schemes are based on ASCII, although they support many additional characters.
Color Color is the characteristic of human visual perception described through color categories. This perception of color derives from the stimulation of cone cells in the human eye by electromagnetic radiation in the spectrum of light." />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://wondrouswisdomcard.gitee.io/posts/homework4/" />
<meta property="article:published_time" content="2020-09-23T00:00:00+00:00" />
<meta property="article:modified_time" content="2020-09-23T00:00:00+00:00" /><meta property="og:site_name" content="My Blog" />





<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Homework of Week 4"/>
<meta name="twitter:description" content="名词解释 ASCII ASCII abbreviated from American Standard Code for Information Interchange, is a character encoding standard. ASCII codes represent text in computers, telecommunications equipment, and other devices. Most modern character-encoding schemes are based on ASCII, although they support many additional characters.
Color Color is the characteristic of human visual perception described through color categories. This perception of color derives from the stimulation of cone cells in the human eye by electromagnetic radiation in the spectrum of light."/>







<script src="/vendor/js/jquery.min.js" ></script>
<script src="/vendor/js/popper.min.js" ></script>
<script src="/vendor/js/bootstrap.min.js" ></script>
<script src="/vendor/js/smooth-scroll.polyfills.min.js" ></script>
<link type="text/css" rel="stylesheet" href="/vendor/css/bootstrap.min.css">
<script src="/vendor/js/vue.min.js" ></script>






<link rel="stylesheet" href="https://wondrouswisdomcard.gitee.io/scss/journal.min.c116bc90d171283f099f173854157ec8f183f9073b93443b2c8ad82899ee9025.css" integrity="sha256-wRa8kNFxKD8Jnxc4VBV&#43;yPGD&#43;Qc7k0Q7LIrYKJnukCU=" media="screen">



<link rel="stylesheet" href="https://wondrouswisdomcard.gitee.io/scss/dark-mode.min.552aae4638a84aa57cf0b195750a49ea9131d3bb621d1ed3ebc9b14b18166536.css" integrity="sha256-VSquRjioSqV88LGVdQpJ6pEx07tiHR7T68mxSxgWZTY=" media="screen">


<script src="https://wondrouswisdomcard.gitee.io/js/loadCSS.js"></script>
<script>
  loadCSS("https://fonts.googleapis.com/css?family=Lora|Montserrat|Fira+Mono|Noto+Serif+SC|Material+Icons");
</script>




  
    <script src="https://wondrouswisdomcard.gitee.io/js/toc-collapse.js"></script>
  



<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<script src="/vendor/js/md5.min.js"></script>
<script>
  var gitalk = new Gitalk({
  clientID: 'your client id',
  clientSecret: 'your client secret',
  repo: 'repo name',
  owner: 'user',
  admin: ['user'],
  id: md5(location.pathname),
  distractionFreeMode: 'false'
  });
  window.onload = function () {
        gitalk.render('gitalk-container')
  }
</script>







<script src="https://cdn.jsdelivr.net/npm/vue-disqus@3/dist/vue-disqus.js"></script>


</head>
<body>
    	<div id="app"><div ref="sideContainer" class="side-container">
    
    <a class="a-block nav-head false" href="https://wondrouswisdomcard.gitee.io">
    
        <div class="nav-title">
            Wondrous WindomCard&#39;s Blog
        </div>
        
        <div class="nav-subtitle">
            Themed by Diary.
        </div>
        
    </a>

    <div class="nav-link-list">
        
        
            
            
            
                
            
            
            
            <a class="a-block nav-link-item active" href="/posts">
                Archive
            </a>
            
        
            
            
            
            
            
            <a class="a-block nav-link-item false" href="/categories">
                Categories
            </a>
            
        
            
            
            
            
            
            <a class="a-block nav-link-item false" href="/tags">
                Tags
            </a>
            
        
            
            
            
            
            
            <a class="a-block nav-link-item false" href="/index.xml">
                RSS Feed
            </a>
            
        
    </div>

    

    <div class="nav-footer">
        
Hugo Theme <a href="https://github.com/amazingrise/hugo-theme-diary">Diary</a> by <a href="https://amazingrise.net">Rise</a>
<br>
Ported from <a href="https://mak1t0.cc/" target="_blank" rel="noreferrer noopener">Makito</a>'s <a href="https://github.com/SumiMakito/hexo-theme-journal/" target="_blank" rel="noreferrer noopener">Journal.</a> <br>
<br>

&copy;
	
	This is a customized copyright.
	

    </div>
    
</div><div ref="extraContainer" class="extra-container">
    
    
    <div class="toc animated-visibility" :class="{ invisible: scrollY <= 140 }">


	<div class="toc-content">
	
		
		
		
		<center>- CATALOG -</center>
		
		
		<ul>
			
				
				
					
						
						
						
						
							
								<ul class="collapse" data-toggle="collapse">
							
						
						
							<li>
								<a href="#%e5%90%8d%e8%af%8d%e8%a7%a3%e9%87%8a" onclick="onNavClick(`#名词解释-nav`)" id="名词解释-nav">
									名词解释
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
						
							
								<ul class="collapse" data-toggle="collapse">
							
						
						
							<li>
								<a href="#ascii" onclick="onNavClick(`#ascii-nav`)" id="ascii-nav">
									ASCII
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
						
						
							<li>
								<a href="#color" onclick="onNavClick(`#color-nav`)" id="color-nav">
									Color
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
							
								</ul>
							
						
						
						
							<li>
								<a href="#%e9%97%ae%e9%a2%98%e7%ae%80%e7%ad%94" onclick="onNavClick(`#问题简答-nav`)" id="问题简答-nav">
									问题简答
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
						
							
								<ul class="collapse" data-toggle="collapse">
							
								<ul class="collapse" data-toggle="collapse">
							
						
						
							<li>
								<a href="#1-%e5%86%99%e5%87%ba%e5%ad%97%e7%ac%a6a%e4%b8%ad%e7%9a%84-ascii-%e7%a0%81unicode-%e7%a0%81utf-8-%e7%bc%96%e7%a0%81" onclick="onNavClick(`#1-写出字符a中的-ascii-码unicode-码utf-8-编码-nav`)" id="1-写出字符a中的-ascii-码unicode-码utf-8-编码-nav">
									1) 写出字符“A”,“中”的 ASCII 码、Unicode 码、UTF-8 编码
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
						
						
							<li>
								<a href="#2-yellow%e7%9a%84rgb%e7%bc%96%e7%a0%81" onclick="onNavClick(`#2-yellow的rgb编码-nav`)" id="2-yellow的rgb编码-nav">
									2) Yellow的RGB编码
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
						
						
							<li>
								<a href="#3-%e4%bb%8e%e7%bd%91%e4%b8%8a%e4%b8%8b%e8%bd%bd%e4%b8%80%e4%b8%aa-bmp-%e6%a0%bc%e5%bc%8f%e5%9b%be%e5%83%8f%e7%94%a8%e5%9b%be%e7%89%87%e7%bc%96%e8%be%91%e5%b7%a5%e5%85%b7%e5%8f%a6%e5%ad%98%e5%9c%a8-jpg-pngtiff-%e6%a0%bc%e5%bc%8f%e9%97%ae%e4%b8%89%e7%a7%8d%e6%a0%bc%e5%bc%8f%e4%b8%ad%e5%93%aa%e7%a7%8d%e6%a0%bc%e5%bc%8f%e6%98%be%e7%a4%ba%e8%b4%a8%e9%87%8f%e5%a5%bd%e7%9b%b8%e5%af%b9%e4%ba%8ebmp-%e6%a0%bc%e5%bc%8f%e5%8e%8b%e7%bc%a9%e7%8e%87%e5%90%84%e6%98%af%e5%a4%9a%e5%b0%91" onclick="onNavClick(`#3-从网上下载一个-bmp-格式图像用图片编辑工具另存在-jpg-pngtiff-格式问三种格式中哪种格式显示质量好相对于bmp-格式压缩率各是多少-nav`)" id="3-从网上下载一个-bmp-格式图像用图片编辑工具另存在-jpg-pngtiff-格式问三种格式中哪种格式显示质量好相对于bmp-格式压缩率各是多少-nav">
									3) 从网上下载一个 BMP 格式图像,用图片编辑工具另存在 jpg、 png、tiff 格式。问三种格式中,哪种格式显示质量好?相对于BMP 格式,压缩率各是多少?
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
						
						
							<li>
								<a href="#4-qwinrar%e5%8e%8b%e7%bc%a9%e6%96%87%e4%bb%b6%e6%98%aflossless%e8%bf%98%e6%98%aflossy%e6%96%b9%e6%b3%95" onclick="onNavClick(`#4-qwinrar压缩文件是lossless还是lossy方法-nav`)" id="4-qwinrar压缩文件是lossless还是lossy方法-nav">
									4) Q:Winrar压缩文件是lossless还是lossy方法？
								</a>
							</li>
						
						
					
				
			
		</ul>
	</div>

</div>
    
    <div class="pagination">
        <a id="globalBackToTop" class="pagination-action animated-visibility" href="#top" :class="{ invisible: scrollY == 0 }">
            <i class="material-icons pagination-action-icon">
                keyboard_arrow_up
            </i>
        </a>
        
        <a class="pagination-action" v-on:click="toggleDarkMode">
            <i class="material-icons pagination-action-icon" v-if="isDarkMode">
                brightness_4
            </i>
            <i class="material-icons pagination-action-icon" v-else="isDarkMode">
                brightness_7
            </i>
        </a>
        
        
    </div>
</div>
<div class="single-column-drawer-container" ref="drawer"
     v-bind:class="{ 'single-column-drawer-container-active': isDrawerOpen }">
    <div class="drawer-content">
        <div class="drawer-menu">
            
            
            
                
                
                
                    
                
                
                
                <a class="a-block drawer-menu-item active" href="/posts">
                    Archive
                </a>
                
            
                
                
                
                
                
                <a class="a-block drawer-menu-item false" href="/categories">
                    Categories
                </a>
                
            
                
                
                
                
                
                <a class="a-block drawer-menu-item false" href="/tags">
                    Tags
                </a>
                
            
                
                
                
                
                
                <a class="a-block drawer-menu-item false" href="/index.xml">
                    RSS Feed
                </a>
                
            
            
            <div class="toc">


	<div class="toc-content">
	
		
		
		
		<center>- CATALOG -</center>
		
		
		<ul>
			
				
				
					
						
						
						
						
							
								<ul class="collapse" data-toggle="collapse">
							
						
						
							<li>
								<a href="#%e5%90%8d%e8%af%8d%e8%a7%a3%e9%87%8a" onclick="onNavClick(`#名词解释-nav`)" id="名词解释-nav">
									名词解释
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
						
							
								<ul class="collapse" data-toggle="collapse">
							
						
						
							<li>
								<a href="#ascii" onclick="onNavClick(`#ascii-nav`)" id="ascii-nav">
									ASCII
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
						
						
							<li>
								<a href="#color" onclick="onNavClick(`#color-nav`)" id="color-nav">
									Color
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
							
								</ul>
							
						
						
						
							<li>
								<a href="#%e9%97%ae%e9%a2%98%e7%ae%80%e7%ad%94" onclick="onNavClick(`#问题简答-nav`)" id="问题简答-nav">
									问题简答
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
						
							
								<ul class="collapse" data-toggle="collapse">
							
								<ul class="collapse" data-toggle="collapse">
							
						
						
							<li>
								<a href="#1-%e5%86%99%e5%87%ba%e5%ad%97%e7%ac%a6a%e4%b8%ad%e7%9a%84-ascii-%e7%a0%81unicode-%e7%a0%81utf-8-%e7%bc%96%e7%a0%81" onclick="onNavClick(`#1-写出字符a中的-ascii-码unicode-码utf-8-编码-nav`)" id="1-写出字符a中的-ascii-码unicode-码utf-8-编码-nav">
									1) 写出字符“A”,“中”的 ASCII 码、Unicode 码、UTF-8 编码
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
						
						
							<li>
								<a href="#2-yellow%e7%9a%84rgb%e7%bc%96%e7%a0%81" onclick="onNavClick(`#2-yellow的rgb编码-nav`)" id="2-yellow的rgb编码-nav">
									2) Yellow的RGB编码
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
						
						
							<li>
								<a href="#3-%e4%bb%8e%e7%bd%91%e4%b8%8a%e4%b8%8b%e8%bd%bd%e4%b8%80%e4%b8%aa-bmp-%e6%a0%bc%e5%bc%8f%e5%9b%be%e5%83%8f%e7%94%a8%e5%9b%be%e7%89%87%e7%bc%96%e8%be%91%e5%b7%a5%e5%85%b7%e5%8f%a6%e5%ad%98%e5%9c%a8-jpg-pngtiff-%e6%a0%bc%e5%bc%8f%e9%97%ae%e4%b8%89%e7%a7%8d%e6%a0%bc%e5%bc%8f%e4%b8%ad%e5%93%aa%e7%a7%8d%e6%a0%bc%e5%bc%8f%e6%98%be%e7%a4%ba%e8%b4%a8%e9%87%8f%e5%a5%bd%e7%9b%b8%e5%af%b9%e4%ba%8ebmp-%e6%a0%bc%e5%bc%8f%e5%8e%8b%e7%bc%a9%e7%8e%87%e5%90%84%e6%98%af%e5%a4%9a%e5%b0%91" onclick="onNavClick(`#3-从网上下载一个-bmp-格式图像用图片编辑工具另存在-jpg-pngtiff-格式问三种格式中哪种格式显示质量好相对于bmp-格式压缩率各是多少-nav`)" id="3-从网上下载一个-bmp-格式图像用图片编辑工具另存在-jpg-pngtiff-格式问三种格式中哪种格式显示质量好相对于bmp-格式压缩率各是多少-nav">
									3) 从网上下载一个 BMP 格式图像,用图片编辑工具另存在 jpg、 png、tiff 格式。问三种格式中,哪种格式显示质量好?相对于BMP 格式,压缩率各是多少?
								</a>
							</li>
						
						
					
				
			
				
				
					
						
						
						
						
						
							<li>
								<a href="#4-qwinrar%e5%8e%8b%e7%bc%a9%e6%96%87%e4%bb%b6%e6%98%aflossless%e8%bf%98%e6%98%aflossy%e6%96%b9%e6%b3%95" onclick="onNavClick(`#4-qwinrar压缩文件是lossless还是lossy方法-nav`)" id="4-qwinrar压缩文件是lossless还是lossy方法-nav">
									4) Q:Winrar压缩文件是lossless还是lossy方法？
								</a>
							</li>
						
						
					
				
			
		</ul>
	</div>

</div>
            
        </div>
    </div>
</div>
<transition name="fade">
    <div v-bind:class="{ 'single-column-drawer-mask': mounted }" v-if="isDrawerOpen" v-on:click="toggleDrawer"></div>
</transition>
<nav ref="navBar" class="navbar sticky-top navbar-light single-column-nav-container">
    <div ref="navBackground" class="nav-background"></div>
    <div class="container container-narrow nav-content">
        <button id="nav_dropdown_btn" class="nav-dropdown-toggle" type="button" v-on:click="toggleDrawer">
            <i class="material-icons">
                menu
            </i>
        </button>
        <a ref="navTitle" class="navbar-brand" href="https://wondrouswisdomcard.gitee.io">
            Wondrous WindomCard&#39;s Blog
        </a>
        
        <button type="button" class="nav-darkmode-toggle" v-on:click="toggleDarkMode">
            <i class="material-icons" v-if="isDarkMode">
                brightness_4
            </i>
            <i class="material-icons" v-else="isDarkMode">
                brightness_7
            </i>
        </button>
        
    </div>
</nav>
<div class="single-column-header-container" ref="pageHead"
     v-bind:style="{ transform: 'translateZ(0px) translateY('+.3*scrollY+'px)', opacity: 1-navOpacity }">
    <a href="https://wondrouswisdomcard.gitee.io">
        <div class="single-column-header-title">Wondrous WindomCard&#39;s Blog</div>
        
        <div class="single-column-header-subtitle">Themed by Diary.</div>
        

    </a>
</div>

            <div id="content">
<div ref="streamContainer" class="stream-container">
    <div class="post-list-container post-list-container-shadow">
        <div class="post">
            
            
            

            <div class="post-head-wrapper-text-only"
                
            >
                <div class="post-title">
                    Homework of Week 4
                    
                    <div class="post-meta">
                        
                        <time itemprop="datePublished">
                            2020-09-23 00:00
                        </time>
                        

                        
                            <i class="material-icons" style="">folder</i>
                                <a href="/categories/">[Homework]</a>
                                &nbsp;
                        

                        
                            <i class="material-icons" style="">label</i>
                            
                                <a href="/tags/data-representation">Data Representation</a>
                                &nbsp;
                            
                        
                        
                    </div>
                </div>
            </div>
            
            <div class="post-body-wrapper">
                
                <div class="post-body" v-pre>
                
                    <h2 id="名词解释">名词解释</h2>
<h3 id="ascii">ASCII</h3>
<p>ASCII abbreviated from American Standard Code for Information Interchange, is a character encoding standard.
ASCII codes represent text in computers, telecommunications equipment, and other devices. Most modern character-encoding schemes are based on ASCII, although they support many additional characters.</p>
<p><img src="../../images/homework4/ASCII.png" alt="ASCII"></p>
<h3 id="color">Color</h3>
<p>Color is the characteristic of human visual perception described through color categories. This perception of color derives from the stimulation of cone cells in the human eye by electromagnetic radiation in the spectrum of light. Color categories and physical specifications of color are associated with objects through the wavelength of the light that is reflected from them.
By defining a color space, colors can be identified numerically by coordinates. The RGB color space for instance is a color space corresponding to human trichromacy and to the three cone cell types that respond to three bands of light: long wavelengths, peaking near 564–580 nm (red); medium-wavelength, peaking near 534–545 nm (green); and short-wavelength light, near 420–440 nm (blue).</p>
<hr>
<h2 id="问题简答">问题简答</h2>
<h4 id="1-写出字符a中的-ascii-码unicode-码utf-8-编码">1) 写出字符“A”,“中”的 ASCII 码、Unicode 码、UTF-8 编码</h4>
<table>
<thead>
<tr>
<th align="center">Character</th>
<th align="center">ASCII</th>
<th align="center">Unicode</th>
<th align="center">UTF-8</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">A</td>
<td align="center">0x41</td>
<td align="center">0x0041</td>
<td align="center">0x41</td>
</tr>
</tbody>
</table>
<h5 id="0x表示十六进制">0x表示十六进制</h5>
<h4 id="2-yellow的rgb编码">2) Yellow的RGB编码</h4>
<p>Yellow的RGB编码是 (R:255, G:255, B:0)</p>
<h4 id="3-从网上下载一个-bmp-格式图像用图片编辑工具另存在-jpg-pngtiff-格式问三种格式中哪种格式显示质量好相对于bmp-格式压缩率各是多少">3) 从网上下载一个 BMP 格式图像,用图片编辑工具另存在 jpg、 png、tiff 格式。问三种格式中,哪种格式显示质量好?相对于BMP 格式,压缩率各是多少?</h4>
<table>
<thead>
<tr>
<th align="center">FORMAT</th>
<th align="left">NAME</th>
<th align="left">CHARACTERISTICS</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">BMP</td>
<td align="left">Windows bitmap</td>
<td align="left">Uncompressed format</td>
</tr>
<tr>
<td align="center">TIFF</td>
<td align="left">Tagged Image File Format</td>
<td align="left">Lossless: Document scanning and imaging format.</td>
</tr>
<tr>
<td align="center">PNG</td>
<td align="left">Portable Network Graphics</td>
<td align="left">Lossless: improve and replace GIF. Based on the DEFLATE algorithm.</td>
</tr>
<tr>
<td align="center">JPEG</td>
<td align="left">Joint Photographic Experts Group</td>
<td align="left">Lossy: big compression ratio, good for photographic images</td>
</tr>
</tbody>
</table>
<blockquote>
<p>Patel Ranna Jayantibhai，Dr. Bhadresh Pravinbhai Patel An Analytical Study on Comparison of Different Image Compression Formats 2015</p>
</blockquote>
<p>实验图片:
<img src="../../images/homework4/test2.bmp" alt="test"></p>
<table>
<thead>
<tr>
<th align="center">文件格式</th>
<th align="center">大小</th>
<th align="center">显示质量</th>
<th align="center">压缩率</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">BMP</td>
<td align="center">696KB</td>
<td align="center">差</td>
<td align="center">1:1</td>
</tr>
<tr>
<td align="center">PNG</td>
<td align="center">391KB</td>
<td align="center">别</td>
<td align="center">1.78:1</td>
</tr>
<tr>
<td align="center">TIFF</td>
<td align="center">467KB</td>
<td align="center">不</td>
<td align="center">1.49:1</td>
</tr>
<tr>
<td align="center">JPG</td>
<td align="center">77.4KB</td>
<td align="center">大</td>
<td align="center">8.99:1</td>
</tr>
</tbody>
</table>
<p>The ratio of compression for TIFF is around 1.49:1, for PNG is around 1.78:1 and for JPEG we obtained a compression ratio of 8.99:1.</p>
<h4 id="4-qwinrar压缩文件是lossless还是lossy方法">4) Q:Winrar压缩文件是lossless还是lossy方法？</h4>
<p>Winrar压缩文件是无损压缩(lossless)</p>
<hr>

                    
                    <HR width="100%" id="EOF">
		    <p style="color:#777;">Last modified on 2020-09-23</p>
                    
                </div>
            </div>
            
            
            <nav class="post-pagination">

                
                <a class="newer-posts" href="https://wondrouswisdomcard.gitee.io/posts/nightnote1/">
			Next<br>NightNote - 1
                </a>
                
                
                
                <a class="older-posts" href="https://wondrouswisdomcard.gitee.io/posts/homework3/">
			Previous<br>Homework of Week 3
                </a>
                
            </nav>
            <div class="post-comment-wrapper">
                
<div class="comments">
    <vue-disqus shortname="Your disqus short name."></vue-disqus>
</div>
<noscript><noscript>Please activate JavaScript to view comments.</noscript></noscript>
<a href="https://disqus.com/" class="dsq-brlink">Comments powered by <span class="logo-disqus">Disqus</span></a>



<div id="gitalk-container"></div>






            </div>
        </div>
    </div>
</div>

            </div><div id="single-column-footer">
Hugo Theme <a href="https://github.com/amazingrise/hugo-theme-diary">Diary</a> by <a href="https://amazingrise.net">Rise</a>
<br>
Ported from <a href="https://mak1t0.cc/" target="_blank" rel="noreferrer noopener">Makito</a>'s <a href="https://github.com/SumiMakito/hexo-theme-journal/" target="_blank" rel="noreferrer noopener">Journal.</a> <br>
<br>

&copy;
	
	This is a customized copyright.
	
</div>
            </div>
    <script>
let app;

app = new Vue({
    el: '#app',
    data: {
        scrollY: 0,
        navOpacity: 0,
        isDrawerOpen: false,
        mounted: false,
        isDarkMode: false
    },
    methods: {
            sgn(t, x) {
                let k = 1. / (1. - 2 * t);
                if (x <= t) return 0;
                else if (x >= 1 - t) return 1;
                else {
                    return k * (x - t);
                }
            },
            handleScroll() {
                this.scrollY = window.scrollY;
                this.navOpacity = this.sgn(.0, Math.min(1, Math.max(0, window.scrollY / (this.pageHeadHeight() - this.navBarHeight() * 0.8))));
                const {navBar, navBackground, navTitle, extraContainer, streamContainer} = this.$refs;

                if (this.navOpacity >= 1) {
                    navBackground.style.opacity = 1;
                    navTitle.style.opacity = 1;
                } else {
                    navBackground.style.opacity = 0;
                    navTitle.style.opacity = 0;
                }
            },
            handleResize() {
                const {navBar, navBackground, navTitle, extraContainer, streamContainer} = this.$refs;
                extraContainer.style.left = (streamContainer.offsetWidth - extraContainer.offsetWidth) + 'px';
            },
            navBarHeight() {
                return this.$refs.navBar.offsetHeight;
            },
            pageHeadHeight() {
                return this.$refs.pageHead.offsetHeight;
            },
            toggleDrawer() {
                this.isDrawerOpen = !this.isDrawerOpen;
                document.getElementsByTagName('html')[0].style.overflow = this.isDrawerOpen ? 'hidden' : 'unset';
            },
            closeDrawer() {
                this.isDrawerOpen = false;
                document.getElementsByTagName('html')[0].style.overflow = this.isDrawerOpen ? 'hidden' : 'unset';
            },
            toggleDarkMode() {
                this.isDarkMode = !this.isDarkMode;
                if (this.isDarkMode==true){
                    document.cookie = "night=1;path=/";
                    document.body.classList.add("night");
                } else {
                    document.cookie = "night=0;path=/";
                    document.body.classList.remove("night");
                }
            }
    },
    created() {
        window.addEventListener('scroll', this.handleScroll);
        window.addEventListener('resize', this.handleResize);
        window._nonDesktop = function () {
            let check = false;
            (function (a) {
                if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) check = true;
            })(navigator.userAgent || navigator.vendor || window.opera);
            return check;
        };
        
        var night = document.cookie.replace(/(?:(?:^|.*;\s*)night\s*\=\s*([^;]*).*$)|^.*$/, "$1");
        if (night==""){
            if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
                
            }
        }else{
            
            if (night=="1") {
                this.toggleDarkMode();
            }
        }
    },
    mounted() {
        this.handleScroll();
        this.handleResize();
        this.mounted = true;

        
    },
    destroyed() {
        window.removeEventListener('scroll', this.handleScroll);
        window.removeEventListener('resize', this.handleResize);
    }
});
</script>

<script src="https://wondrouswisdomcard.gitee.io/js/journal.js"></script>
    </body>
</html>
